<?php
class Api_Controller extends Controller {
	//public $middlewares = ['Auth'=>'+:index,test', 'Sign'=>"-:index,test"];

	public function init() {
		parent::init();
	}
	
	public function indexAction() {
		$data = ['name' => 'test', 'age' => 39];
        Response::success($data);
	}

	public function testAction() {
		$result = Db::connect('slave')->select('*')->from('user')->fetchAll();
		var_dump($result);
	}
}
